﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public static class LoaiDenBUS
    {
        public static List<LoaiDenDTO> LoadAll()
        {
            try
            {
                return LoaiDenDAO.LoadAll();
            }
            catch (Exception e)
            {
                throw e;
            }
        }
        public static bool Add(LoaiDenDTO newLoaiDen)
        {
            try
            {
                return LoaiDenDAO.Add(newLoaiDen);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
        public static bool Alter(LoaiDenDTO newLoaiDen)
        {            
            try
            {
                return LoaiDenDAO.Alter(newLoaiDen);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
    }
}
